<?php
$dir="C:\\Users\\student001\\Desktop\\1125";
if(is_dir($dir))
{
    if($dh=opendir($dir))
    {
        while(($file=readdir($dh))!==false){
            echo "\n 文件名为：".$file;
        }
    }
    else{
        echo "路径错误";
        exit();
    }
    closedir($dh);
}
echo "\n执行完毕";
?>